package com.samsung.dto.common;

import java.io.Serializable;

/**
 * 
 * @ClassName: JCommand
 * @Description: 返回的Json命令
 * @author pu.huang
 * @date 2015年7月17日 上午10:04:04
 *
 */
public class JCommand implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 状态值[成功：true 失败：false]
	 */
	private boolean flag = false;
	/**
	 * 提示消息
	 */
	private String msg;
	/**
	 * 返回指令
	 */
	private String cmd;
	/**
	 * 回调参数
	 */
	private String callback;

	public JCommand(String msg, String cmd) {
		super();
		this.msg = msg;
		this.cmd = cmd;
	}

	public JCommand(String msg, String cmd, String callback) {
		super();
		this.msg = msg;
		this.cmd = cmd;
		this.callback = callback;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

	@Override
	public String toString() {
		return "JCommand [flag=" + flag + ", msg=" + msg + ", cmd=" + cmd
				+ ", callback=" + callback + "]";
	}

}
